import aRoutes from "./aRoutes";
import A from "../views/ReactRouters/A";
import { lazy } from "react";
const routes = [
	{
		redirect: true,
		from: "/",
		to: "/a",
		exact: true,
	},
	{
		path: '/a',
		name: 'A',
		component: A,
		meta: {},
		children: aRoutes
	},
	{
		path: '/b',
		name: 'B',
		component: lazy(() => import("../views/ReactRouters/B")),
		meta: {},
	},
	{
		path: '/c',
		name: 'C',
		component: lazy(() => import("../views/ReactRouters/C")),
		meta: {},
	},
	{
		redirect: true,
		to: "/a",
	},
	{
		path: "*",
		name: 'NotFound',
		component: lazy(() => import("../views/ReactRouters/404")),
	},

]

export default routes